Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SpacetimeDB research

Latency

  • Traditional DB round-trip time? 400 microseconds to 10ms. SpaceTime DB? <1 microsecond

Consistency

Scale

  • Maincloud is designed for 1000+ concurrent clients on a single database instance
  • SpaceTime DB runs server-side code inside the database itself, removing the need for separate application servers.
  • Vertical Scalability for the Standalone version
    • Horizontal scaling in enterprise
    • Serverless scaling resource in maincloud

Security

  • Technical safeguards
    • Implementation in Rust provides memory safety.
    • Server-side code runs in sandboxed WebAssembly environments for isolation.
  • Application-level security
    • Custom authorization logic via reducers, enabling fine-grained access control within the database.
    • Row-level security lets you specify which clients can access specific data rows.

Cost

Standalone

  • Free
  • Self-Hosted

Maincloud

  • Pay-as-you-go
  • $5/hr
  • Serverless Cloud Platform

Maincloud Pricing

Enterprise

  • Price discussed with Clockwork Labs
  • Custom service for dedicated hosting